﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="ITabPageBehavior.cs" company="" />
// <summary>
//   Defines a behavior required from all tab-pages.
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace Xompare
{
    /// <summary>
    /// Defines a behavior required from all tab-pages.
    /// </summary>
    public interface ITabPageBehavior
    {
        /// <summary>
        /// Refresh the information in the tab-page from the sources.
        /// </summary>
        void RefreshTabPage();

        /// <summary>
        /// Invoked when the tab page is removed.
        /// </summary>
        /// <param name="isLastRemoved">Whether this is the last tab-page to be removed.</param>
        void OnRemoval(bool isLastRemoved);
    }
}
